package cn.xiu.drugstore.dao;

import java.util.List;
import cn.xiu.drugstore.pojo.Customer;

/**
 * 顾客功能接口
 * @author 陈亚鹏
 *
 */
public interface CustomerDao {
	/**
	 * 查询所有会员信息
	 * @return
	 * @throws Exception
	 */
	public List<Customer> queryAllCustomer()throws Exception;
	/**
	 * 查询指定Id的会员对象
	 * @param custid
	 * @return
	 * @throws Exception
	 */
	public Customer queryCustomerById(int custid) throws Exception;
	/**
	 * 增加会员
	 * @param news
	 * @return
	 * @throws Exception
	 */
	public int add(Customer cust) throws Exception;
	/**
	 * 删除会员
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteCustomer(int id) throws Exception;
}
